package cn.young.javalearning.designpattern.singleton.register;

public enum RegisterSingleton {
    SINGLETON;

    private Object data;

    public Object getData() {
        return data;
    }

    public RegisterSingleton setData(Object data) {
        this.data = data;
        return this;
    }

    public static final RegisterSingleton getInstance(){
        return SINGLETON;
    }

    public String test(){
        System.out.println("aaaaaaaaaaaa");
        return "test";
    }

}
